package com.ty.controller;

import com.ty.entity.User;
import com.ty.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private Userservice userservice;



    @RequestMapping("f")
    public String User() {
        List<User> users = userservice.findAll();
        System.out.println(users);
        return "404";
    }


}
